<!--
 * @Author: June
 * @Date: 2022-11-14 14:40:09
 * @LastEditors: 无处安放的六月
 * @LastEditTime: 2023-11-29 15:27:57
 * @Description:
 *
-->
<template>
  <div class="chart-container">
    <!-- <chart height="100%" width="100%" /> -->
    <!-- <component :is="chart" height="100%" width="100%" /> -->
    <div class="imgDiv">
      <div class="bgImg" />
      <!-- <img src="../../assets/images/homepage.png"> -->
    </div>
  </div>
</template>

<script>
import GradientStackedArea from '@/components/Charts/GradientStackedArea'
import Keyboard from '@/components/Charts/Keyboard'
import LineMarker from '@/components/Charts/LineMarker'

export default {
  // components: { Keyboard, LineMarker, GradientStackedArea },
  data() {
    return {
      chart: Keyboard
    }
  },
  created() {
    const index = parseInt(3 * Math.random())
    const arr = [Keyboard, LineMarker, GradientStackedArea]
    this.chart = arr[index]
  }
}
</script>

<style scoped>
.chart-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 104px);
}
.imgDiv {
  padding: 20px;
  width: 100%;
  height: 100%;
}
.imgDiv .bgImg {
  width: 100%;
  height: 100%;
  background: url(../../assets/images/homepage.png) no-repeat top center;
  background-size: 100% 100%;
}
/* .imgDiv img{
    width: 100%;
    height: 100%;
} */
</style>

